from myelin.Ns import MYELIN, MYELINS

#from myelin.server.nodetypes.base.File import File

from nodetypes.Ns import NODETYPE_NS
from nodetypes.ntypes.Resource import Resource
from nodetypes.models.VersaQueryService import VersaQueryService as Model

import query

class SparqlService(Resource):
    
    typeInfo = {
        'key' : u'sparql-service',
        'name' : u'SparqlService',
        'namespace-uri' : NODETYPE_NS,
    }
    
    model = Model
    
    ACTIONS = {
        None                : query.TRANSFORMS,
        'query'             : query.TRANSFORMS,
        'view'              : query.TRANSFORMS,
    }
    

NODE_TYPES = {
    MYELIN + 'SparqlService' : SparqlService,   
}


    